package com.demo.design.stractural.adapter;

import com.demo.design.stractural.adapter.impl.AnotherDriver;
import com.demo.design.stractural.adapter.impl.DartzonDrive;
import com.demo.design.stractural.adapter.impl.F22Engine;

public class ClientMain {
    public static void main(String[] args) {
        Driver driver = new AnotherDriver(new F22Engine());
        driver.drive();
    }


    /**
     * 适配器模式和代理模式的区别
     * 代理的接口相同只是做了包装
     * 适配器模式是在其方法内对被适配者方法做了转换
     */
}
